package com.zx.club.oss.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.stereotype.Component;

/**
 * @author zx
 * @date 2025-03-13 09:17
 */
@ConfigurationProperties(prefix = "oss")
@Component
public class OssProperties {
    /**
     * oss 服务类型: type = minio | ali
     */
    private String type;


    /**
     * minio 配置信息
     */
    @NestedConfigurationProperty
    private MinioProperties minio;

    @NestedConfigurationProperty
    private AliOssProperties aliOss;

    public AliOssProperties getAliOss() {
        return aliOss;
    }

    public void setAliOss(AliOssProperties aliOss) {
        this.aliOss = aliOss;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public MinioProperties getMinio() {
        return minio;
    }

    public void setMinio(MinioProperties minio) {
        this.minio = minio;
    }
}
